package pattern19;

/**
 * p234
 * 命令模式
 * @author wdl
 */
public class CommandPattern {
    public static void main(String[] args) {
        Receiver receiver=new Receiver();
        BaseCommand command=new ConcreteCommand(receiver);
        Invoker invoker=new Invoker();
        invoker.setCommand(command);
        invoker.executeCommand();
    }
}
